public class Relate {
    //存储某个关键词和文档的相关程度

    //关键词
    private String key;
    //文档id
    private int docId;
    //权重，该值越大说明相关性越高
    private int weight;

    public Relate() {

    }

    public Relate(String key, int docId, int weight) {
        this.key = key;
        this.docId = docId;
        this.weight = weight;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public int getDocId() {
        return docId;
    }

    public void setDocId(int docId) {
        this.docId = docId;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }
}
